package com.goktech.olala.core.service;

import com.goktech.olala.core.resp.RespBuyInfoVo;
import com.goktech.olala.core.resp.RespOrderInfo;
import com.goktech.olala.server.pojo.order.OrderDetail;

import java.util.List;

/**
 * @Classname IOrderDetailService
 * @Description TODO
 * @Date 2020/12/26 14:45
 * @Created by ASUS
 */
public interface IOrderDetailService {

    int deleteByPrimaryKey(Integer orderDetailId);

    int insert(OrderDetail record);

    OrderDetail selectByPrimaryKey(Integer orderDetailId);

    List<OrderDetail> selectAll();

    int updateByPrimaryKey(OrderDetail record);

    //把订单加入
    int addOrder(RespBuyInfoVo respBuyInfoVo);

    //通过客户id查找订单orderSn
    List<RespOrderInfo> selectByCustomerId(String customerId, String goodSn);

    //通过orderId、找订单
    OrderDetail selectByOrderId(Integer orderId);

}
